<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>02.slice.call</title>
  </head>
  <body>
    <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
    </ul>

    <script>
      // 伪数组：可以当成数组来存储数据，但是不能使用数组中的方法
      const oLi = document.querySelectorAll("li");
      const ooLi = document.getElementsByName("li");

      const nums = [1, 2, 3];

      //   [].slice.call(oLi);
      //   Array.prototype.slice.call(oLi);
      //   console.log([].slice.call(oLi));
      console.log(Math.max(...nums));
    </script>
  </body>
</html>
